<?php /* Smarty version 2.6.26, created on 2014-01-21 14:58:15
         compiled from index.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div class="main fn-clear">
	<div class="my-account">
    	<div class="user-info fn-left">
        	<dl>
            	<dt class="fn-left"><img src="<?php echo $this->_tpl_vars['site_url']; ?>
/statics/images/nopic.png"></dt>
                <dd class="fn-left">
                	<p class="user-name"><?php echo $this->_tpl_vars['noon']; ?>
，<?php echo $this->_tpl_vars['user_info']['user_name']; ?>
</p>
                    <p><?php echo $this->_tpl_vars['user_info']['email']; ?>
</p>
                    <p class="user-secure">安全等级：
                        <?php if (( $this->_tpl_vars['user_info']['PhoneChecked'] == 1 ) && ( $this->_tpl_vars['user_info']['certificated'] == 2 )): ?><a class="user-securelevel-high"><i></i>高</a>
                        <?php elseif (( $this->_tpl_vars['user_info']['PhoneChecked'] != 1 ) && ( $this->_tpl_vars['user_info']['certificated'] != 2 )): ?><a class="user-securelevel-low"><i></i>低</a>
                        <?php elseif (( ( $this->_tpl_vars['user_info']['PhoneChecked'] == 1 ) && ( $this->_tpl_vars['user_info']['certificated'] != 2 ) ) || ( ( $this->_tpl_vars['user_info']['PhoneChecked'] != 1 ) && ( $this->_tpl_vars['user_info']['certificated'] == 2 ) )): ?><a class="user-securelevel-medium"><i></i>低</a>

                        <?php endif; ?>

                        <!--判断a：低class='user-securelevel-low'中class='user-securelevel-medium'--></p>
                </dd>
            </dl>
            <ul>
            	<li><!--判断认证--><a class="user-certify" href="javascript:;"><?php if ($this->_tpl_vars['user_info']['certificated'] == 2): ?>已<?php else: ?>未<?php endif; ?>认证</a><a class="user-mobile" href="javascript:;"><?php if ($this->_tpl_vars['user_info']['PhoneChecked'] == 1): ?>已<?php else: ?>未<?php endif; ?>绑定</a></li>
            </ul>
        </div>
        <div class="account-info fn-left">
        	<h1>账户余额</h1>
            <h2><em><?php echo $this->_tpl_vars['user_info']['vcount']; ?>
</em>元<!--&nbsp;&nbsp;冻结金额：<?php echo $this->_tpl_vars['frozen']; ?>
--></h2>
            <p><a class="button-morange" href="index.php?c=index&a=recharge" target="_blank">充值</a><a class="button-mwhite" href="index.php?c=index&a=cashout">提现</a></p>
        </div>
        <div class="user-help fn-left">
        	<h1>使用帮助</h1>
            <ul>
                	<li><a href="http://www.ppsc.com.cn/article-24-42.html" target="_blank">什么是博货宝？</a></li>
                	<li><a href="http://www.ppsc.com.cn/article-24-42.html#recharge" target="_blank">如何充值？</a></li>
                	<li><a href="http://www.ppsc.com.cn/article-24-42.html#cashout" target="_blank">如何提现？</a></li>
            </ul>
        </div>
    </div>
    <div class="list-box">
    	<table>
        	<thead>
            	<tr><td colspan="6">最近交易列表</td></tr>
            </thead>
            <tbody>
            	<tr class="title">
					<td>订单号</td>
                	<td class="time">日期</td>
                	<td class="name">交易商品</td>
                	<td class="amount">收支</td>
                	<td class="status">状态</td>
                    
                	<td class="from">商户</td>
                    
                </tr>
                <?php $_from = $this->_tpl_vars['res']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['re']):
?>
                <tr>
					 <td><?php echo $this->_tpl_vars['re']['order_sn_main']; ?>
</td>
                    <td class="time"><?php echo $this->_tpl_vars['re']['add_time']; ?>
</td>
                    <td class="name"><a href="http://www.ppsc.com.cn/product-<?php echo $this->_tpl_vars['re']['goods_id']; ?>
.html" target="_blank"><?php echo $this->_tpl_vars['re']['goods_name']; ?>
</a></td>
                    
                    <td class="amount"><?php if (( $this->_tpl_vars['re']['b_type'] == 0 ) && ( $this->_tpl_vars['re']['pay_status'] != 0 )): ?><span class="pay-in">+<?php echo $this->_tpl_vars['re']['order_amount']; ?>
</span><?php elseif (( $this->_tpl_vars['re']['b_type'] == 1 ) && ( $this->_tpl_vars['re']['pay_status'] != 0 )): ?><span class="pay-out">-<?php echo $this->_tpl_vars['re']['order_amount']; ?>
</span><?php else: ?><span class="pay-un">-<?php echo $this->_tpl_vars['re']['order_amount']; ?>
</span><?php endif; ?></td>
                    <td class="status"><?php if ($this->_tpl_vars['re']['pay_status'] == 0): ?>未支付<?php else: ?><?php echo $this->_tpl_vars['conf'][$this->_tpl_vars['re']['status']]['ch_name']; ?>
<?php endif; ?></td>
                   
                    <td class="from"><a href="http://www.ppsc.com.cn/store-<?php echo $this->_tpl_vars['re']['seller_id']; ?>
-39.html" target="_blank"><?php echo $this->_tpl_vars['re']['seller_name']; ?>
</a></td>
                    
                </tr>
                <?php endforeach; endif; unset($_from); ?>
            </tbody>
            <tfoot>
            	<tr><td colspan="6"><a href="index.php?c=index&a=trade_record" target="_self">>>查看所有交易记录</a></td></tr>
            </tfoot>
        </table>
    </div>
</div>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>